<?php

use Illuminate\Routing\Router;

Admin::registerAuthRoutes();

Route::group([
    'prefix'        => config('admin.route.prefix'),
    'namespace'     => config('admin.route.namespace'),
    'middleware'    => config('admin.route.middleware'),
], function (Router $router) {

    $router->get('test', function(){
        $cate=\App\Models\Cate::find(3);
        echo $cate->full_name;
    });
    $router->get('/', 'HomeController@index');
    $router->resource('navs', NavController::class);//首页顶部导航
    $router->resource('articles', ArticleController::class);//文章
    $router->resource('cates', CateController::class);//文章分类
    $router->resource('confs', ConfController::class);//网站配置


});
